<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="-1"/>
<meta http-equiv="Pragma" content="no-cache"/>
<link rel="stylesheet" type="text/css" href="/style/css/adminbase.css" media="screen" />
<title></title>

</head>
<body>

	<div id="communityContents" class="contents">
		<h3>명함 현황</h3>
		<br />
		${it.member.userName}(${it.member.email}) 회원님은 <a href="/ws/card/list">총 ${it.totalCount}건</a>의 명함을 보유하고 계십니다.
		<br />
		<p>
		<a href="/ws/receipt/list">${it.receiptCount}건</a>의 새 명함이 수신되었습니다.
		</p> 
		<br />
		<div class="table01">

			<table style="width: 600px;">
				<colgroup>
					<col style="width: 200px;" />
					<col style="width: auto;" />
				</colgroup>
				<thead>
				</thead>
				<tbody>
					<c:forEach var="category" items="${it.categories}">
					<tr>
						<th><a href="/ws/card/list/${category.categoryOId}">${category.categoryName}</a></th>
						<td>${fn:length(category.nameCardDtoList)}건</td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
		<br />
		<a href="/ws/cat/categoryform">카테고리등록</a>
		<a href="/ws/card/new">명함등록</a>
		<a href="/ws/card/list">명함조회</a>
		<a href="/ws/auth/logout">로그아웃</a>
	</div>

</body>
</html>